/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 分页查询 POST /task/user/pageData */
export async function taskUserPageDataUsingPost({
  body,
  options,
}: {
  body: API.TaskUserBoTaskUserPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoTaskUserVo>('/task/user/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 活动签到 POST /task/user/signIn */
export async function taskUserSignInUsingPost({
  body,
  options,
}: {
  body: API.TaskUserBoTaskUserSignIn;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/task/user/signIn', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 统计活动报名/签到人数 POST /task/user/statisticTaskUser */
export async function taskUserStatisticTaskUserUsingPost({
  body,
  options,
}: {
  body: API.TaskUserBoTaskUserStatisticTaskUser;
  options?: { [key: string]: unknown };
}) {
  return request<API.RTaskUserStatisticVo>('/task/user/statisticTaskUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
